<template>
    <div class="admin-view">
        <header-component :page-list="pageList"/>
        <router-view/>
    </div>
</template>

<script setup>
import {useAdminStore} from "@/stores/admin";
import HeaderComponent from "@/components/header/HeaderComponent.vue";
import {
    AccumulationIce,
    CategoryNewEach,
    Education,
    GroupAccess,
    EventsAlt,
} from '@vicons/carbon'


let pageList = reactive([
    {
        name: '组织管理',
        icon:h(CategoryNewEach),
        pathName:'OrganizationManage',
        isChoose: true
    },
    {
        name: '教师管理',
        icon:h(Education),
        pathName:'TeacherManage',
        isChoose: false
    },
    {
        name: '班级管理',
        icon:h(GroupAccess),
        pathName:'ClassView',
        isChoose: false
    },
    {
        name: '学生管理',
        icon:h(EventsAlt),
        pathName:'StudentManage',
        isChoose: false
    },
    {
        name: '实训管理',
        icon:h(AccumulationIce),
        pathName:'TrainManagement',
        isChoose: false
    },
])


// 获取信息
let useAdmin = useAdminStore();
useAdmin.setClass()
useAdmin.setTeacher()
useAdmin.updateTrain()
useAdmin.setAcademy()
</script>

<style scoped>

</style>